//
//  TableViewCell.m
//  tableViewTest
//
//  Created by dajie on 9/26/13.
//  Copyright (c) 2013 dajie. All rights reserved.
//

#import "TableViewCell.h"

@implementation TableViewCell

- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        // Initialization code
        self.label2 = [[UILabel alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 100.0f, 30.0f)];
        [self.contentView addSubview:self.label2];
        self.label2.backgroundColor = [UIColor yellowColor];
        self.label2.textAlignment = NSTextAlignmentRight;
    }
    return self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
    self.label2.frame = self.contentView.bounds;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
